import { axios } from '@/utils/request'

// 获取未生效包裹
export const packGetCode = (params) => {
  return axios({
    url: '/wms/wmsBoxBar/getBoxBar',
    method:'get' ,
    params
  })
}

// 获取未生效的一码多物包裹ID
export const packGetOneToManyCode = (params) => {
  return axios({
    url: '/wms/wmsBoxBar/getBoxBarPart',
    method:'get' ,
    params
  })
}

// 绑定规格和包裹
export const packBind = (data) => {
  return axios({
    url: '/wms/wmsBoxBar/bindOrderDetail',
    method:'post' ,
    data
  })
}

// 删除未生效 和已绑定的包裹
export const packDel = (params) => {
  return axios({
    url: '/wms/wmsBoxBar/delete',
    method:'delete' ,
    params
  })
}

// 上架包裹
export const packGrounding = (data) => {
  return axios({
    url: '/wms/wmsBoxBar/grounding',
    method:'post' ,
    data
  })
}